package com.foreknow.demo4;

import java.util.Scanner;

public class TestMethod6 {
    public static void A() {
        System.out.println("A.............");
    }

    public static void B(int a) {
        System.out.println(a);
    }

    public static void C(String name) {
        System.out.println("您的名字是: "+ name);
    }

    public static void D(int[] array) {
        for(int i = 0;i<array.length;i++){
            System.out.println(array[i]);
        }
    }

    public static void E( Scanner input) {
        //Scanner input = new Scanner(System.in);
        System.out.println("请输入用户名:");
        String name = input.next();
        System.out.println(name);
    }

    public static void main(String[] args) {
        A();
        B(100);
        C("tom");
        int[] arr = {1,2,3,4,5,6};
        D(arr);
        Scanner ii = new Scanner(System.in);
        E(ii);

        String new_str = "ABC".concat("DEF");
        System.out.println(new_str);
    }




}
